 window.onload=function () {

     var newss = document.getElementsByClassName("newss");
     var newsList = document.getElementsByClassName("news-list");

     for (var i = 0; i < newss.length; i++) {
         newss[i].index = i;
         newss[i].onclick = function () {
             for (var j = 0; j < newsList.length; j++) {
                 newsList[j].style.display = "none";
                 newss[j].style.color="#fff";
             }
             newsList[this.index].style.display = "block";
             this.style.color="#01b08e"
         }
     }
 }
